﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="http://tempuri.org/" elementFormDefault="qualified" targetNamespace="http://tempuri.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import namespace="http://schemas.datacontract.org/2004/07/Rio.Workflow.Runtime" />
  <xs:import namespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
  <xs:import namespace="http://schemas.datacontract.org/2004/07/NetBay.Core.BusinessEntities.Workflow" />
  <xs:import namespace="http://schemas.datacontract.org/2004/07/Rio.Workflow.Runtime.Enums" />
  <xs:import namespace="http://schemas.datacontract.org/2004/07/NetBay.Core.BusinessEntities" />
  <xs:element name="Test">
    <xs:complexType>
      <xs:sequence />
    </xs:complexType>
  </xs:element>
  <xs:element name="TestResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="TestResult" nillable="true" type="xs:string" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="HasWorkflow">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q1="http://schemas.datacontract.org/2004/07/Rio.Workflow.Runtime" minOccurs="0" name="context" nillable="true" type="q1:CreationContext" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="HasWorkflowResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="HasWorkflowResult" type="xs:boolean" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="StartWorkflow">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q2="http://schemas.datacontract.org/2004/07/Rio.Workflow.Runtime" minOccurs="0" name="context" nillable="true" type="q2:CreationContext" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="StartWorkflowResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="StartWorkflowResult" type="xs:boolean" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="ActionRequest">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="wkfInstanceId" type="xs:long" />
        <xs:element minOccurs="0" name="wkfActionId" type="xs:long" />
        <xs:element xmlns:q3="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="wkfDocumentStateIds" nillable="true" type="q3:ArrayOflong" />
        <xs:element minOccurs="0" name="userId" type="xs:long" />
        <xs:element minOccurs="0" name="rguId" type="xs:long" />
        <xs:element xmlns:q4="http://schemas.datacontract.org/2004/07/Rio.Workflow.Runtime" minOccurs="0" name="Parameters" nillable="true" type="q4:ArrayOfParameter" />
        <xs:element minOccurs="0" name="IsGlobalAction" type="xs:boolean" />
        <xs:element xmlns:q5="http://schemas.datacontract.org/2004/07/NetBay.Core.BusinessEntities.Workflow" minOccurs="0" name="UiActionType" type="q5:WorkflowTypeAction" />
        <xs:element minOccurs="0" name="FolderIdentifier" type="xs:long" />
        <xs:element minOccurs="0" name="FolderTypeIdentifier" type="xs:long" />
        <xs:element minOccurs="0" name="OrganizationIdentifier" type="xs:long" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="ActionResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q6="http://schemas.datacontract.org/2004/07/Rio.Workflow.Runtime.Enums" minOccurs="0" name="Result" type="q6:ActionResult" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="ChronoRequest">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="FolderTypeIdentifier" type="xs:long" />
        <xs:element minOccurs="0" name="UserId" type="xs:long" />
        <xs:element minOccurs="0" name="InputedFlowTypeValue" nillable="true" type="xs:string" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="ChronoResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q7="http://schemas.datacontract.org/2004/07/NetBay.Core.BusinessEntities" minOccurs="0" name="Item" nillable="true" type="q7:Item" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="WorkflowOpened">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="wkfDefinitionId" type="xs:long" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="WorkflowOpenedResponse">
    <xs:complexType>
      <xs:sequence />
    </xs:complexType>
  </xs:element>
</xs:schema>